package com.gdth.bank.widget.baiduMap;

import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.BitmapDescriptor;
import com.baidu.mapapi.map.BitmapDescriptorFactory;
import com.gdth.bank.R;

public class BWalkingRouteOverlay extends WalkingRouteOverlay{
	private boolean useDefaultIcon;
	
	public BWalkingRouteOverlay(BaiduMap baiduMap, boolean useDefaultIcon) {
        super(baiduMap);
        
        this.useDefaultIcon = useDefaultIcon;
    }

    @Override
    public BitmapDescriptor getStartMarker() {
        if (useDefaultIcon) {
            return BitmapDescriptorFactory.fromResource(R.drawable.map_guide_start);
        }
        return null;
    }

    @Override
    public BitmapDescriptor getTerminalMarker() {
        if (useDefaultIcon) {
            return BitmapDescriptorFactory.fromResource(R.drawable.map_guide_end);
        }
        return null;
    }
}
